<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    private $view;

    protected function _initViewApp() {
        $this->bootstrap('view');
        $this->view = $this->getResource('view');

        $this->view->addHelperPath('ZExt/View/Helper', 'ZExt_View_Helper');
    }

    protected function _initHead() {
        $this->view->doctype('XHTML1_STRICT');
        $this->view->setEncoding('UTF-8');
        $this->view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8');
        $this->view->headTitle('RH Design');
        $this->view->headTitle()->setSeparator(' - ');
    }

    protected function _initJquery() {
	     $this->view->headScript()->appendFile('/js/jquery.js');
	     $this->view->headScript()->appendFile('/js/jquery.jcarousel.js');
	     $this->view->headScript()->appendFile('/js/jcarousel.connected-carousels.js');
	     
		 
   
    }

    protected function _initStyle() {
        $this->view->headLink()->appendStylesheet('/css/jcarousel.connected-carousels.css');
        $this->view->headLink()->appendStylesheet('/css/reset.css');
        $this->view->headLink()->appendStylesheet('/css/style.css');
        $this->view->headLink()->appendStylesheet('/css/grid.css');
		  
	}

    protected function _initRouter() {
        $front = Zend_Controller_Front::getInstance();
    }

    protected function _initPlugins() {
        $front = Zend_Controller_Front::getInstance();

        $config = new Zend_Config($this->getOptions(), true);
        Zend_Registry::set('config', $config);

        $auth = Zend_Auth::getInstance();
        $acl = new MyAcl($auth);
        Zend_Registry::set('acl', $acl);

        $aclPlugin = new AclPlugin($auth, $acl);

        $front->registerPlugin($aclPlugin);
    }

}
